continue;
}
- remoteProvider = new RemoteSearchProvider(appInfo.get_name(),
- appInfo.get_icon(),
+ remoteProvider = new RemoteSearchProvider(appInfo,
busName,
objectPath);
loadedProviders[objectPath] = remoteProvider;
Name: 'RemoteSearchProvider',
Extends: Search.SearchProvider,
- _init: function(title, icon, dbusName, dbusPath) {
+ _init: function(appInfo, dbusName, dbusPath) {
this._proxy = new SearchProviderProxy(Gio.DBus.session,
dbusName, dbusPath, Lang.bind(this, this._onProxyConstructed));
- this.parent(title.toUpperCase());
+ this.parent(appInfo.get_name().toUpperCase(), appInfo);
this._cancellable = new Gio.Cancellable();
},
const SearchProvider = new Lang.Class({
Name: 'SearchProvider',
- _init: function(title) {
+ _init: function(title, appInfo) {
this.title = title;
+ this.appInfo = appInfo;
this.searchSystem = null;
},